package com.sz.service.impl;

import com.sz.mapper.UserMapper;
import com.sz.model.TUser;
import com.sz.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements IUserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public TUser queryUkPhone(String ukPhone) {
        return userMapper.queryUkPhone(ukPhone);
    }

    @Override
    public int addUser(TUser tUser) {
        return userMapper.addUser(tUser);
    }

    @Override
    public String queryUserPassword(String ukPhone) {
        String userPassword = userMapper.queryUserPassword(ukPhone);
        return userPassword;
    }
}
